<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>
            <?php echo $GLOBALS['title']; ?><?php echo C('SITE_NAME') ?>
        </title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="author" content="学并思教育">
        <meta name="description" content="在 学并思，你可以找到你所需要的网站建设教程。 从基础的 HTML 到CSS，乃至进阶JS、JQ、PHP、Mysql 和 Linux 从顶部的菜单选择你需要的教程！">
        <meta name="keywords" content="<?php echo $GLOBALS['title'] ?>,php培训,php框架,php教程,php framework,laravel php">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!--[if lte IE 9]>
            <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js">
            </script>
        <![endif]-->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="__PUBLIC__/css/laravel.css">
        <link rel="stylesheet" href="__PUBLIC__/css/patch.css">
        
    </head>
    
    <body class="docs language-php scotchified" style="">
        <div class="scotch-panel-wrapper" style="position: relative; overflow: hidden; width: 100%;">
            <div class="scotch-panel-canvas" style="position: relative; height: 100%; width: 100%; transform: translate3d(0px, 0px, 0px); backface-visibility: hidden; transition: all 300ms ease;">
                <span class="overlay">
                </span>
                <nav class="main">
                    <div class="container">
                        <a href="<?php if('__ROOT__'){echo '__ROOT__';}else{echo '/';} ?>" class="brand">
                            <img src="__PUBLIC__/images/logo.png" height="60">
                        </a>
                        <div class="responsive-sidebar-nav">
                            <a href="http://www.golaravel.com/laravel/docs/5.1/quickstart/#" class="toggle-slide menu-link btn">
                                ☰
                            </a>
                        </div>
                        <div class="switcher">
                            <div class="dropdown">
                                <button class="btn dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"
                                aria-expanded="true">
                                    W3cshool
                                    <span class="caret">
                                    </span>
                                </button>
                                <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                                    <?php foreach (C('link') as $link) { ?>

                                        <li role="presentation">
                                            <a role="menuitem" tabindex="-1" href="<?php echo $link['url'] ?>">
                                               <?php echo $link['cname'] ?>
                                            </a>
                                        </li>
                                        
                                    <?php } ?>
                                    
                                </ul>
                            </div>
                        </div>
                        <ul class="main-nav">
                            
                            <?php foreach (C('menu') as $menu) { ?>
                                <li >
                                    <a href="<?php echo U($menu['url'])?>">
                                        <?php echo $menu['cname'] ?>
                                    </a>
                                </li>
                            <?php } ?>
                            <li class="nav-forge">
                                <a href="https://mp.weixin.qq.com/wiki/home/index.html" target="_blank">
                                    微信
                                </a>
                            </li>
                        </ul>
                    </div>
                </nav>
                <nav id="slide-menu" class="slide-menu scotch-panel-left" role="navigation"
                style="top: 0px; left: -70%; width: 70%; height: 100%; position: absolute; z-index: 888888; overflow: hidden; backface-visibility: hidden; display: block;">
                    <div class="brand">
                        <a href="<?php if('__ROOT__'){echo '__ROOT__';}else{echo '/';} ?>">
                            <img src="__PUBLIC__/images/logo-white.png" height="50">
                        </a>
                    </div>
                    <ul class="slide-main-nav">
                        <li>
                            <a href="<?php if('__ROOT__'){echo '__ROOT__';}else{echo '/';} ?>">
                                首页
                            </a>
                        </li>
                        <?php foreach (C('menu') as $menu) { ?>
                            <li >
                                <a href="<?php echo U($menu['url'])?>">
                                    <?php echo $menu['cname'] ?>
                                </a>
                            </li>
                        <?php } ?>
                        <li class="nav-forge">
                            <a href="https://mp.weixin.qq.com/wiki/home/index.html" target="_blank">
                                微信
                            </a>
                        </li>
                    </ul>
                    <div class="slide-docs-nav">
                        <h2>
                            文档目录
                        </h2>
                        <ul>
                            <?php $nav= C('nav')[CONTROLLER_NAME] ?>
                            <li>
                                <?php echo $nav['list'] ?>
                                <ul>
                                    <?php foreach ($nav['son'] as $row) { ?>
                                        <li>
                                            <a href="<?php echo U($row['url']) ?>">
                                                <?php echo $row['name'] ?>
                                            </a>
                                        </li>
                                   <?php } ?>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </nav>
                <style type="text/css">
                    .sidebar > ul > li > ul >li > a{
                        padding: 5px;
                    }
                    .sidebar > ul > li > ul >li > a.xbs{
                        background: #F4645F url() 0 0 no-repeat;
                        color: #fff;
                    }
                </style>
                <div class="docs-wrapper container">
                    <section class="sidebar">
                        <ul>
                            <?php $nav= C('nav')[CONTROLLER_NAME] ?>
                            <li>
                                <?php echo $nav['list'] ?>
                                <ul>
                                    <?php foreach ($nav['son'] as $actionName => $row) { ?>
                                        <li>
                                            <a class="<?php if($actionName==ACTION_NAME){echo 'xbs';} ?>" href="<?php echo U($row['url']) ?>">
                                                <?php echo $row['name'] ?>
                                            </a>
                                        </li>
                                   <?php } ?>
                                </ul>
                            </li>
                        </ul>
                    </section>
                    {__CONTENT__}
                </div>
                <footer class="main">
                    <ul style="display:none">
                        <li class="nav-docs">
                            <a href="">
                                友情链接
                            </a>
                        </li>
                        <li class="nav-community">
                            <a href="" target="_blank">
                                友情链接
                            </a>
                        </li>
                        <li class="nav-api">
                            <a href="" target="_blank">
                                友情链接
                            </a>
                        </li>
                        <li class="nav-laracasts">
                            <a href="" target="_blank">
                                友情链接
                            </a>
                        </li>
                        <li class="nav-forge">
                            <a href="" target="_blank">
                                友情链接
                            </a>
                        </li>
                    </ul>
                    <p>
                        学并思学习手册 Copyright © 学并思
                    </p>
                    <p class="less-significant">
                        <a href="http://jackmcdade.com/" target="_blank">
                            由zhibinm编程整理
                        </a>
                    </p>
                </footer>
                <script src="__PUBLIC__/js/laravel.js">
                </script>
                <script src="__PUBLIC__/js/viewport-units-buggyfill.js">
                </script>
                <script>
                    window.viewportUnitsBuggyfill.init();
                </script>
                <p style="transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); margin: 0px;">
                </p>
            </div>
        </div>
    </body>

</html>